#include <bits/stdc++.h>
using namespace std;
string a,b; 
int main()
{
    cin>>a;
    while(cin>>b)
			 a=b+" "+a;
    cout<<a;
    return 0;
}
